package test.beanTest;

import bean.back.login.BackloginBean;
import org.junit.Test;

import static junit.framework.Assert.assertEquals;

public class BackloginBeanTest {

    @Test
    public void setCode() {
        BackloginBean b = new BackloginBean();
        b.setCode(1);
        assertEquals(1,b.getCode());
    }

    @Test
    public void setMessage() {
        BackloginBean b = new BackloginBean();
        b.setMessage("111");
        assertEquals("111",b.getMessage());
    }

    @Test
    public void setToken() {
        BackloginBean b = new BackloginBean();
        b.setToken("111");
        assertEquals("111",b.getToken());
    }

    @Test
    public void login() {
        BackloginBean b = new BackloginBean();
        b.login("admin_1","yhz");
    }
}